package com.hxc.interest.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.hxc.common.annotation.Excel;
import com.hxc.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户和反馈信息中间对象 t_reaction_user
 * 
 * @author hxc
 * @date 2021-08-17
 */
public class TReactionUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;
    /** 事件反馈id */
    @Excel(name = "事件反馈id")
    private Long reactionId;
    /** 发布人id */
    @Excel(name = "发布人id")
    private Long userId;
    /** 发布状态(0自发，1转发) */
    @Excel(name = "发布状态(0自发，1转发)")
    private Integer sendType;
    /** 点赞数 */
    @Excel(name = "点赞数")
    private Integer greatNum;
    /** 删除状态 */
    private Integer delFlag;

    /** ----------------------------------表关联字段----------------------------- */
    /** 递增或递减 */
    @TableField(exist = false)
    private Boolean orderNum = true;

    public void setId(Long id) 
    {
        this.id = id;
    }
    public Long getId() 
    {
        return id;
    }

    public void setReactionId(Long reactionId) 
    {
        this.reactionId = reactionId;
    }
    public Long getReactionId() 
    {
        return reactionId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }
    public Long getUserId() 
    {
        return userId;
    }

    public void setSendType(Integer sendType) 
    {
        this.sendType = sendType;
    }
    public Integer getSendType() 
    {
        return sendType;
    }

    public void setGreatNum(Integer greatNum) 
    {
        this.greatNum = greatNum;
    }
    public Integer getGreatNum() 
    {
        return greatNum;
    }

    public Integer getDelFlag() { return delFlag; }
    public void setDelFlag(Integer delFlag) { this.delFlag = delFlag; }

    public Boolean getOrderNum() { return orderNum; }
    public void setOrderNum(Boolean orderNum) { this.orderNum = orderNum; }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("reactionId", getReactionId())
            .append("userId", getUserId())
            .append("sendType", getSendType())
            .append("greatNum", getGreatNum())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("orderNum", getOrderNum())
            .toString();
    }
}
